package com.ruibang.glass.quality.controller;

import com.ruibang.glass.quality.domain.req.EveryHourDiscardDefectReq;
import com.ruibang.glass.quality.service.EveryHourHotEndDiscardDefectService;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * @Author: songJinKang
 * @CreateTime: 2023-09-06  10:23
 * @Description: TODO
 * @Version: 1.0
 */


@RestController
@RequestMapping("/api/discard/defect/hotEnd/hour")
@Api(value = "每小时判废缺陷数量及曲线（热端）", tags = {"每小时判废缺陷数量及曲线（热端）"})
public class EveryHourHotEndDiscardDefectController {


    @Autowired
    private EveryHourHotEndDiscardDefectService everyHourHotEndDiscardDefectService;


    @PostMapping("/queryHotEndColdDirect")
    @ApiOperation(value = "查询每小时判废缺陷数量及曲线", notes = "查询每小时判废缺陷数量及曲线")
    public ResultBody queryEveryHourColdDirect(@RequestBody @Valid EveryHourDiscardDefectReq everydayDiscardDefectReq) {
        return everyHourHotEndDiscardDefectService.queryEveryHourColdDirectService(everydayDiscardDefectReq);
    }


}
